package com.boot.mall.search.vo;

import lombok.Data;

import java.util.List;

/**
 * 封装页面传递的查询条件对象
 */
@Data
public class SearchParam {

    private String keyword; //搜索关键字
    private Long catalog3Id;    //三级分类id

    /**
     *  sort = saleCount_asc/desc
     *  sort = skuPrice_asc/desc
     *  sort = hotScore_asc/desc
     */
    private String sort;    //排序条件

    /**
     *  过滤条件
     *      hasStock    0,1
     *      skuPrice    1_500 / _500 / 500_
     */
    private Integer hasStock = 0;   //是否还有库存，0为默认所有的商品，1为有库存的
    private String skuPrice;    //价格查询区间
    private List<Long> brandId; //按照品牌查询
    private List<String> attrs; //属性筛选
    private Integer pageNum = 1;    //页码

}
